package si.yun.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import si.yun.entity.R;
import si.yun.service.AliPayService;

import java.util.Map;

@Controller
@RequestMapping("/alipay")
public class AliPayController {
	
	@Autowired
	private AliPayService aliPayService;
	/**
	 * alipay.trade.wap.pay：H5手机App支付接口2.0（外部商户创建订单并支付）
	 * @param map
	 * @return
	 */
	@RequestMapping(value="/alipayTradeWapPay")
	@ResponseBody
	public R alipayTradeWapPay(@RequestParam Map<String, Object> map) {
		return aliPayService.alipayTradeAppPay(map);
	}
}
